package com.xb.service.imp;

import com.xb.mapper.RoleMenuMapper;
import com.xb.service.IRoleMenuService;
import com.xb.util.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Service业务层处理
 */
@Service
public class RoleMenuServiceImp implements IRoleMenuService {
    @Resource
    private RoleMenuMapper roleMenuMapper;


    @Override
    public Result getRoleMenu(Integer roleId) {
        Result result = new Result();
        result.setData(roleMenuMapper.selectRoleMenuByRoleId(roleId));
        return result;
    }

}
